package lancs.mobilemedia.core.ui.controller.commands;

import lancs.mobilemedia.core.ui.controller.AbstractController;
import lancs.mobilemedia.core.ui.controller.ControllerCommand;
import lancs.mobilemedia.core.ui.controller.PhotoListController;
import lancs.mobilemedia.core.ui.controller.ScreenSingleton;
import lancs.mobilemedia.core.util.Constants;

public class ViewFavorite implements ControllerCommand {

	public boolean execute(AbstractController controller) {
		((PhotoListController) controller).showImageList(controller.getCurrentStoreName(), false, true);
		ScreenSingleton.getInstance().setCurrentScreenName(Constants.IMAGELIST_SCREEN);
		return true;
	}

}
